const state = {
  subjectList: [],
}

const mutations = {
  SET_SUBJECT_LIST: (state, subjectList) => {
    state.subjectList = subjectList
  },
}

const actions = {
  setSubjectList({ commit }, subjectList) {
    commit('SET_SUBJECT_LIST', subjectList)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
}
